package com.kristin.aspect;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class AnnotationMethodAOP {

    @Before("execution(public void com.kristin.service.UserService.test())")
    public void before(JoinPoint joinPoint) {
        System.out.println("前置通知");
    }

}
